<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="{{__PUBLIC__}}/Home/less/index.css" />
		<link rel="stylesheet" href="{{__PUBLIC__}}/Home/less/bottom.css" />
		<style type="text/css">
			.hover{
				/*color:#0000CC;*/
				font-size:20px;
				font-weight: 800;
			}
		</style>
	</head>

	<body>
		<!--载入公共头部-->
		{{include file="VIEW_PATH/Common/header.php"}}
		<!--列表页开始-->

		<div id="chanpin">

			<div class="chanpin">
				<!--产品瀑布流上部-->
				<div class="top">
					<!--列表页当前位置开始-->
					<div class="vjiaTop">
						<span>当前位置：</span>
						<a href="">所有分类	</a>
						<div>找到相关商品<span>26<span>款</div>
						
					</div>
						<div class="category">
							{{foreach from="$goodsattr" key="$k" value="$v"}}
							<li>
								<!--顶级分类-->
								<span class='topcate'style="color:#E02222;font-size: 16px;font-weight:600;">{{$v['name']}}:</span>
								<!--子类-->
								<!--为了'不限'做准备-->
								<?php 
									$hd=$param;
									$hd[$k]=0;
//									sp($hd);die;
								?>
								<a href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$hd)))}}"{{if value="$param[$k] eq 0 "}}class="hover"{{endif}}>不限</a>
								{{foreach from="$v['value']" value="$vv"}}
								<?php 
									$hd[$k]=$vv['gaid'];
								?>
								<a href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$hd)))}}"{{if value="$param[$k] eq $vv['gaid']"}}class="hover"{{endif}}>{{$vv['gavalue']}}</a>
								{{endforeach}}
								
							</li>
							{{endforeach}}
						
							
						
						</div>
						<!--全部商品-->
						<div class="all">

							<p><a href="">全部分类</a></p>
							<div class="table">
								<ul>
									</span>
									</li>
									<li><a href="">销量</a><span title="按销量高低排序">=></span></span>
									</li>
									<li><a href="">好评</a><span title='按好评多少排序'>=></span></li>
									<li><a href="">最新</a><span title="按照上架时间排序">=></span></li>
									<li><a href="">价格</a><span title="按照价格高低排序">=></span></li>
									<li class='input'>
										<input type="text" /> <span class='input'> - </span>
										<input type="text" />
									</li>
									<li class='tiao'><a href="">合并条款</a></li>
								</ul>
							</div>
						</div>
					</div>
					<!--产品瀑布流-->
					<ul>
						{{foreach from="$goodsdata" value="$v"}}
						<li>
							<div>
								<a href="{{U('protect/index',array('gid'=>$v['gid'],'cid'=>$v['category_cid']))}}"><img src="{{__ROOT__}}/{{$v['pic']}}" alt="" /></a>
								<p>{{$v['gname']}}</p>
								<p class="sprice">
									<span>售价￥{{$v['shopprice']}}</span>

								</p>
								<div class="new"></div>
							</div>
							
						</li>
					{{endforeach}}
						
					</ul>
				</div>
				<!--产品瀑布流结束-->
			</div>
			<!--公共尾部-->
			{{include file="VIEW_PATH/Common/footer.php"}}
	</body>

</html>